]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Don't destroy the notification when clicking on the close button
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 19 Sep 2012 03:40:53 +0000 (00:40 -0300)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 25 Oct 2012 20:41:32 +0000 (22:41 +0200)
Clicking on the close button should simply hide the notification.

https://bugzilla.gnome.org/show_bug.cgi?id=682237

js/ui/messageTray.js

index 9c9221f358bf9cadd622e72da9d469475e4fa8a3..93ec828f40e02f7ad69ffd1b0f2f9e579b3edb23 100644 (file)
@@ -1592,11 +1592,7 @@ const MessageTray = new Lang.Class({
     _onCloseClicked: function() {
         if (this._notificationState == State.SHOWN) {
             this._notificationClosed = true;
-            this._notification.emit('done-displaying');
-
-                if (!this._notification.resident)
-                    this._notification.destroy();
-
+            this._updateState();
             this._notificationClosed = false;
         }
     },